#include <stdio.h>
int main()
{
	int Max = 0;
	int arr[10] = { 0 };
	for (int i = 0; i < 10; i++)
	{
		scanf_s("%d ", &arr[i]);

	}

	Max = arr[0];
	for (int i = 0; i < 10; i++)
	{
		if (arr[i] > Max)
			Max = arr[i];

	}
	printf("%d", Max);
	return 0;
}